home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / weapons / webley_revolver.tik < prev   
Encoding:
Text File  |  2002-10-21  |  8.1 KB  |  277 lines

  1. TIKI
  2. setup
  3. {
  4.     scale 0.52            // Set default scale to 16/30.5 since world
  5.                         // is in 16 units per foot and model is in cm's
  6.     path models/weapons/webley_revolver
  7.     skelmodel webley_revolver.skd
  8.     surface webley shader webley
  9.     surface shellmetal_cull shader shellmetal
  10. }
  11.  
  12. init
  13. {
  14.     server
  15.     {
  16.  
  17.     //========================================//
  18.     //        WEAPON NAME          //
  19.     //========================================//
  20.  
  21.         classname        Weapon
  22.         weapontype        pistol
  23.         name            "Webley Revolver"
  24.         rank            120 120
  25.  
  26.     //========================================//
  27.     //        WEAPON ACCURACY       //
  28.     //========================================//
  29.  
  30. //        Walther P-38 Pistol: Max Eff. Range is 75 yds with a muzzle velocity of 1150 ft/s. (9mm Parabellum round)
  31.  
  32.         sp bulletrange        3120     //the range at which bulletspread is applied fully
  33.         sp bulletspread        40 40 56 56 //  minpitch minyaw maxpitch maxyaw(offsets in world units)
  34.         sp firespreadmult    0.38 0.7 200 0.6            //add falloff cap maxtime
  35.  
  36. //        dm bulletrange        3120     //the range at which bulletspread is applied fully (65 yards)
  37.         dm bulletrange        4000     //the range at which bulletspread is applied fully (65 yards)
  38.  
  39. //        dm bulletspread        40 40 56 56 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  40. //        dm bulletspread        70 70 130 130 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  41. //        dm bulletspread        40 40 64 64 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  42.         dm bulletspread        42 42 65 65 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  43.  
  44. //        dm firespreadmult    0.38 0.7 200 0.6            //add falloff cap maxtime
  45.         dm firespreadmult    0.58 0.5 200 0.6    //add falloff cap maxtime 0.38 0.7 200 0.6 (original)
  46.  
  47.         realism bulletrange        4000     //the range at which bulletspread is applied fully (65 yards)
  48.         realism bulletspread        42 42 65 65 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  49.         realism firespreadmult    0.58 0.5 200 0.6    //add falloff cap maxtime 0.38 0.7 200 0.6 (original)
  50.  
  51.     //========================================//
  52.     //        DAMAGE / RATE OF FIRE      //
  53.     //========================================//
  54.  
  55.         sp bulletdamage        33    //original 25
  56.         dm bulletdamage        38    //original 25 // 2nd pass 33
  57.         realism bulletdamage        44    //original 25 // 2nd pass 33
  58.  
  59.         sp firedelay        0.15
  60.         dm firedelay        0.16    //was 0.15
  61.         realism firedelay        0.16    //was 0.15
  62.  
  63.     //========================================//
  64.     //        PLAYER MOVEMENT          //
  65.     //========================================//
  66.  
  67.         sp movementspeed     1.0
  68.         dm movementspeed    1.0
  69.         realism movementspeed    1.0
  70.  
  71.     //========================================//
  72.     //        RIFLE BUTT / SECONDARY FIRE//
  73.     //========================================//
  74.  
  75.         secondary firetype            melee
  76.         secondary ammotype            none
  77.         secondary ammorequired        0
  78.         secondary meansofdeath        bash
  79.         secondary bulletknockback    50
  80.         secondary quiet
  81.  
  82.         sp secondary bulletrange    64
  83.         sp secondary bulletdamage    20
  84.  
  85.         dm secondary bulletrange    96
  86.         dm secondary bulletdamage    35
  87.  
  88.         realism secondary bulletrange    96
  89.         realism secondary bulletdamage    35
  90.  
  91.     //========================================//
  92.     //        AMMO              //
  93.     //========================================//
  94.  
  95.         firetype        bullet
  96.         ammotype        "Pistol"
  97.         meansofdeath    bullet
  98.         semiauto
  99.         bulletcount        1
  100.         clipsize        6
  101.         ammorequired    1
  102. //        usenoammo        1 // allow the pistol to be used when it has no ammo
  103.  
  104.         sp startammo    6
  105.         dm startammo    24
  106.         sprealism startammo    6
  107.         dmrealism startammo    12
  108.  
  109.     //========================================//
  110.     //        CROSSHAIR, ZOOM, TRACERS  //
  111.     //========================================//
  112.  
  113.         sp tracerfrequency     1
  114.         dm tracerfrequency     0
  115.         sprealism tracerfrequency     1
  116.         dmrealism tracerfrequency     0
  117.  
  118.         crosshair        1
  119.  
  120.     //========================================//
  121.     //        SOUND, AI, OTHER      //
  122.     //========================================//
  123.  
  124.         pickupsound        webley_snd_pickup
  125.         ammopickupsound    webley_snd_pickup_ammo
  126.         noammosound        webley_snd_noammo
  127.  
  128.         // Holstering info
  129. //        holstertag        "Bip01 Pelvis"
  130. //        holsteroffset    "1.5 -4 -10.0"
  131. //        holsterangles    "5 190 195"
  132. //        holsterScale    1.0
  133.  
  134.         // AI animation group info
  135.         weapongroup        pistol
  136.         airange            short
  137.         
  138.         // this is attached to the player during reload
  139.     }
  140.     client
  141.     {
  142.         cache tracer.spr
  143.         cache muzsprite.spr
  144.         cache models/fx/muzflash.tik
  145.         cache models/ammo/pistolshell.tik
  146.     }
  147. }
  148.  
  149. animations
  150. {
  151.     idle    webley_revolver.skc
  152.     reload     webley_revolver_reload_start.skc
  153.     {
  154.         client
  155.         {
  156.             7 sound webley_snd_reload_start
  157.         }
  158.  
  159.     }
  160.  
  161.     reload_single     webley_revolver_reload_single.skc
  162.     {
  163.         server
  164.         {
  165.             2    surface shellmetal_cull -nodraw
  166.             8    surface shellmetal_cull +nodraw
  167.         }
  168.         client
  169.         {
  170.             3 sound webley_snd_reload_single
  171.  
  172.             3 tagspawn tag_eject
  173.             (
  174.                 count 1
  175.                 model models/ammo/pistolshell.tik
  176.                 spawnrange 1024
  177.                 scale .75
  178.                 velocity 50
  179.                 randvelaxis range 1 2 range 1 2 0
  180.                 emitterangles 0 0 45
  181.                 avelocity crandom 90 crandom 90 0
  182.                 accel 0 0 -800
  183.                 physicsrate 20
  184.                 life 2.0
  185.                 fadedelay 1.7
  186.                 collision
  187.                 bouncefactor 0.2
  188.                 bouncesoundonce snd_pistol_shell
  189.             )
  190.  
  191.         }
  192.     }
  193.     reload_end     webley_revolver_reload_end.skc
  194.     {
  195.         client
  196.         {
  197.             3 sound webley_snd_reload_end
  198.         }
  199.     }
  200.     
  201.     secondaryfire     webley_revolver.skc
  202.     {
  203.         server
  204.         {
  205.             entry shoot secondary
  206.         }
  207.     }
  208.     fire    webley_revolver_fire.skc
  209.     {
  210.         server
  211.         {
  212.             entry shoot primary
  213.         }
  214.         client
  215.         {
  216.             entry stopaliaschannel webley_snd_fire
  217.             entry sound webley_snd_fire
  218.  
  219.             // By now, the server has already fired the weapon, so it's
  220.             // ok to apply the view kick apon entry to avoid problems
  221.             // with multiple application on single frame animations.
  222.  
  223.             ////////////////////////////////////////////////////////////////////////////////////////
  224.             // View Kick Controls
  225.             //
  226.             // View Kicking works based on the assumptions that every weapon has its own tendencies to kick in
  227.             // a paticular fashion. In MOH we call then scatter patterns. Currently we have 2 scatter patterns which
  228.             // will be explained.
  229.             // Scatter Patterns:
  230.             // "V" - the cone. The longer you shoot the more random your shots will be in the horizontal axis.
  231.             // "T" - the T shape. The gun has a tendancy to push in a paticular direction. //not used much...too artificial looking
  232.             //
  233.             //
  234.             //                     +-------------------------------------------- Scatter Pitch Min
  235.             //                      |    +--------------------------------------- Scatter Pitch Max
  236.             //                      |    |       +------------------------------- Scatter Yaw Min
  237.             //                     |    |       |   +--------------------------- Scatter Yaw Max
  238.             //                     |    |       |   |     +--------------------- The Recentering speed in fraction per second
  239.             //                      |    |       |   |     |    +---------------- The Scatter Pattern
  240.             //                      |    |       |   |     |    |     +---------- The absolute pitch min/max
  241.             //                      |    |       |   |     |    |     |  +------- The absolute yaw min/max
  242.             //                      |    |       |   |     |    |     |  | +----- This is the pitch at which you loose all
  243.             //                      |    |       |   |     |    |     |  | |      control of the weapon and its behavior is
  244.             //                      |    |       |   |     |    |     |  | |      purely random.
  245.             //                V    V       V   V     V    V     V  V V
  246.             entry viewkick         -1.0 -1.0    -0.16 0.16  1.2 "V"  2.8 0.8 1.2
  247.  
  248.             //entry viewkick         -1.2 -1.2    -0.2 0.2    1   "V"  3.0 1.0 1.6 (Colt .45 stats)
  249.  
  250.             // muzzle flash
  251.             entry tagdlight tag_barrel 0.25 0.2 0.15 120 0.11
  252.             entry tagspawnlinked tag_barrel
  253.             (
  254.                 scale 0.2
  255.                 offsetalongaxis 2 0 0
  256.                 count 1
  257.                 scale 0.30
  258.                 model muzsprite.spr
  259.                 life 0.06
  260.             )
  261.             entry tagspawnlinked tag_barrel
  262.             (
  263.                 count 1
  264.                 scalemin 0.15
  265.                 scalemax 0.25
  266.                 model models/fx/muzflash.tik
  267.                 randomroll
  268.                 life 0.04
  269.             )
  270.  
  271.         }
  272.     }
  273. }
  274.  
  275. /*QUAKED addon_playerweapon_british_webley-mk6 (0.0 0.0 1.0) (-8 -8 -8) (8 8 8)
  276. British pistol - Webley Mark 6.
  277. */